window.toolGroups = [{
  name: '基础',
  children: [
    {
      name: '立方体',
      // image: './images/cube.jpg',
      data: {
        type: 'box',
        animations:[{key:'position',to:{x:-10,z:6},time:3000,repeat:-1,start:true,yoyo:true},{key:'rotation',time:3000,to:{y:11},repeat:-1,start:true,yoyo:true}],
        materialType:'Standard',
        material:{
            color:0x4444f4,
        }
      }
    },
    {
      name: '圆球',
      data: {
        type: 'sphere'
      }
    },
    {
      name: '圆柱体',
      data: {
        type: 'cylinder'
      }
    },
    {
      name: '平面',
      data: {
        type: 'plane',
      }
    },
    {
      name: '文本2d',
      data: {
        type: 'text2d',
        text: '文本2D'
      }
    },
    {
      name: '组',
      data: {
        type: 'group'
      }
    },
    {
      name: '相机',
      data: {
        type: 'perspectiveCamera',
        name: '透视相机',
        position: {
          x:0,
          y:5,
          z:10
        }
      }

    },
    {
      name: 'dom按钮',
      data: {
        type: 'domButton',
        text: '按钮999999999999999中文',
      }
  
    },
    {
      name: '柱状图表',
      data: {
        type: 'echart',
        width: 600,
        height: 200,
        options: {
          
          backgroundColor:'rgba(0,0,0,0.2)',
          title: {
            text: 'ECharts 入门示例'
          },
          tooltip: {},
          legend: {
            data: ['销量']
          },
          xAxis: {
            data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
          },
          yAxis: {},
          series: [
            {
            name: '销量',
            type: 'bar',
            data: [5, 20, 36, 10, 10, 20]
            }
          ]
        }
      }
  
    },
    {
      name: '饼图表',
      data: {
        type: 'echart',
        width: 400,
        height: 400,
        options: {
          
          backgroundColor:'rgba(0,0,0,0.2)',
          title: {
            text: 'Referer of a Website',
            subtext: 'Fake Data',
            left: 'center'
          },
          tooltip: {
            trigger: 'item'
          },
          legend: {
            orient: 'vertical',
            left: 'left'
          },
          series: [
            {
              name: 'Access From',
              type: 'pie',
              radius: '50%',
              data: [
                { value: 1048, name: 'Search Engine' },
                { value: 735, name: 'Direct' },
                { value: 580, name: 'Email' },
                { value: 484, name: 'Union Ads' },
                { value: 300, name: 'Video Ads' }
              ],
              emphasis: {
                itemStyle: {
                  shadowBlur: 10,
                  shadowOffsetX: 0,
                  shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
              }
            }
          ]
        }
      }
  
    }
  ]
},{
  name:'光源',
  children:[{
    name: '环境光',
    data: {
      type: 'ambientLight',
      color: 0xffffff,
    }
  },
  {
    name: '平行光',
    data: {
      type: 'directionalLight',
      color: 0xffffff,
      intensity: 1,
      position:{
        x:3,
        y:4,
        z:2
      }
    }

  },
  {
    name: '半球光',
    data: {
      type: 'hemisphereLight',
      skyColor: 0xffffbb,
      groundColor: 0x080820,
      intensity: 1
    }

  },
  {
    name: '点光源',
    data: {
      type: 'pointLight',
      color: 0xffffff,
      intensity: 50,
      position: {
        x:0,
        y:10,
        z:0
      }
    }

  },
  {
    name: '聚光灯',
    data: {
      type: 'spotLight',
      color: 0xffffff,
      intensity: 50,
      position: {
        x:0,
        y:10,
        z:0
      }
    }

  },
  {
    name: '平面光',
    data: {
      type: 'rectAreaLight',
      color: 0xffffff,
      intensity: 1,
      width:10,
      height:10
    }

  }]
},{
  name:'远程',
  children:[{
    name:'树fbx模型',
    data:{
      type:'fbx',
      url:'./tree.fbx',
      scale:{
        x:0.002,
        y:0.002,
        z:0.002
      }
    }
  }]
}];